package com.tql.mall.model.comment;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tql.mall.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "商品评论")
@TableName("comment_info")
public class CommentInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "店铺id")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty(value = "用户名称")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    @TableField("head_img")
    private String headImg;

    @ApiModelProperty(value = "skuid")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "商品id")
    @TableField("spu_id")
    private Long spuId;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "商品评分")
    @TableField("appraise")
    private Integer appraise;

    @ApiModelProperty(value = "评价内容")
    @TableField("comment_txt")
    private String commentTxt;

}

